:host {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.toast-container-top-center {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast-container-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.toast-container-bottom-center {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
}

.toast-container-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
}

.toast-item {
    display: flex;
    align-items: center;
    min-width: 250px;
    max-width: 350px;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    margin: 0;
}

.toast-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
}

.toast-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
}

.toast-info {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}

.toast-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
}

.toast-icon {
    margin-right: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-success .toast-icon {
    color: #52c41a;
}

.toast-error .toast-icon {
    color: #ff4d4f;
}

.toast-info .toast-icon {
    color: #1890ff;
}

.toast-warning .toast-icon {
    color: #faad14;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.85);
}

.toast-close-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

.toast-close-btn:hover {
    color: rgba(0, 0, 0, 0.75);
}

@media (max-width: 576px) {
    .toast-item {
        min-width: auto;
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .toast-container-top-center,
    .toast-container-bottom-center {
        width: 100%;
        padding: 0 20px;
    }

    .toast-container-top-right,
    .toast-container-bottom-right {
        max-width: calc(100vw - 40px);
    }
}